package com.aaa.system.controller;


import com.aaa.entity.RegisteredItem;
import com.aaa.system.service.IRegisteredItemService;
import com.aaa.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author L
 * @since 2023-03-24
 */
@RestController
@RequestMapping("/registered-item")
public class RegisteredItemController {

    @Resource
    private IRegisteredItemService registeredItemService;

    /**
     * 提供给看病就诊模块的接口 查找所有的挂号项目
     * @return
     */
    @GetMapping("/getAll")
    public Result<List<RegisteredItem>> getAll(){
        return registeredItemService.getAll();
    }


}

